﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using PicStore.BLL.Register;

namespace PicStore.Server
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        static void Main()
        {
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] 
            { 
                new PicStoreService() 
            };
            ServiceBase.Run(ServicesToRun);

            //// [Test Code ] for debugging
            //PicStoreService service = new PicStoreService();
            //service.OnStart(null);

            //while (true)
            //{
            //    Thread.Sleep(50000);
            //}
        }
    }
}
